package net.mgsx.product.t2m.modisco;
import org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.gmt.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.gmt.modisco.infra.query.core.java.ParameterValueList;
import org.eclipse.gmt.modisco.java.AbstractMethodDeclaration;

public class NbInstructions implements IJavaModelQuery<AbstractMethodDeclaration, Integer> {
	public Integer evaluate(final AbstractMethodDeclaration context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		return new InstructionList().evaluate(context, parameterValues).size();
	}
}
